package com.schoolgard.dao.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;

import com.schoolgard.base.BaseDAOImpl;
import com.schoolgard.dao.RoleDao;
import com.schoolgard.entitybean.Role;

public class RoleDaoImpl extends BaseDAOImpl<Role> implements RoleDao{

	public List<Role> findByIds(String[] roleIds) {
		DetachedCriteria criteria = DetachedCriteria.forClass(Role.class);
		criteria.add(Restrictions.in("id", roleIds));
		return this.findByCriteria(criteria);
	}
   
	
}
